package com.zhentao.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * AI会话数据传输对象
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AiConversationDTO {
    
    private String id;
    private Integer userId;
    private String conversationId;
    private String title;
    private String description;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    private LocalDateTime lastMessageTime;
    private String lastMessage;
    private Integer messageCount;
    private String status;
    private Boolean pinned;
    private String tags;
    
    /**
     * 简化构造函数 - 用于列表显示
     */
    public AiConversationDTO(String id, String conversationId, String title, 
                           LocalDateTime lastMessageTime, String lastMessage, 
                           Integer messageCount, Boolean pinned) {
        this.id = id;
        this.conversationId = conversationId;
        this.title = title;
        this.lastMessageTime = lastMessageTime;
        this.lastMessage = lastMessage;
        this.messageCount = messageCount;
        this.pinned = pinned;
    }
}
